Loans API icon

Loans API

(0 reviews)

Get loan details

Description: This endpoint is used to get the loan details based on loanId. The loanId being passed in path parameter..

Channel sends the request to mulesoft with the path parameter "id". Mulesoft will send the request to t24 and get back the result.

A response is sent back to the channel immediately. If transaction fails due to any reason, a proper error is sent back to the API consuming channel to both REST using the error codes defined.

Mulesoft Request:

Headers:

Mandatory Headers: x-channel-id,x-correlation-id, x-bank-id,client_id, Authorization

Optional Headers: x-sub-channel-id,x-user-id, client_secret,x-debug-flag,x-debug-flag, x-customer-id

Paramaters:
URI Params: /{id}/
Query Params: NA

Content-type: application/json

Mulesoft Response:

Success Response: (200)

{
    "status": {
        "success": true,
        "code": "200",
        "arabicMessage": "تمت العملية بنجاح",
        "englishMessage": "The Operation has been Successfully Completed"
    },
    "response": {
        "customers": {
            "customerId": "2038271"
        },
        "loans": [
            {
                "accountID": "4405216",
                "branchCode": "JO0010002",
                "contractDate": "20160428",
                "maturityDate": "20640901",
                "Term": "16010D",
                "productGroup": "CBOJ Retail Loans",
                "productId": "CBOJ.HL.JODI.LOAN",
                "productName": "Retail Housing JODIBOR Loans",
                "currency": "JOD",
                "contractAmount": "50135.004",
                "outstandingAmount": "49413.555",
                "nextPaymentDate": "20640901",
                "nextPaymentAmount": "49492.486",
                "numberOfFutureInstallments": "1",
                "totalNumberOfSettledBills": "1",
                "totalNumberOfDues": "3",
                "totalOverdueDays": "69",
                "category": "3081",
                "purpose": "001",
                "interestRate": "0",
                "totalDueAmount": "1590.768",
                "payinAccountNumber": "4106430",
                "payoutAccountNumber": "4106430",
                "accruedPrincipalInterest": "78.931",
                "accruedPenalty": "18.832",
                "principalDue": "545.849",
                "principalInterestDue": "1044.919",
                "chargeDue": "0",
                "parentLimitName": "Red Term Housing Loan",
                "approvedLimits": "471937.471",
                "totalUtilization": "389324.899",
                "totalAvailableLimit": "0"
            }
        ]
    }
}

Sample Error Response:

400 :

{
    "status":
   {
        "success": false,
        "code": "400",
        "reasonCode": "BadRequest",
        "arabicMessage": "لم يتم العثور على سجلات تطابق محددات البحث",
        "englishMessage": "No records were found that matched the selection criteria",
        "backendError": "No records were found that matched the selection criteria",
        "backendCode": "T24003790"
    }
}

Reviews